package com.dragons.dragonsvf.entities;

import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.sql.Timestamp;

/**
 * @author dragons
 * @version 1.0.0
 * @description: 用户信息类
 * @date 2025/2/6 14:52
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Getter
@Setter
@TableName("product")
public class Product {

    @TableField(value = "id", condition = SqlCondition.EQUAL)
    private String id; // 唯一的32位的
    @TableField(value = "product_name", condition = SqlCondition.LIKE)
    private String product_name; // 商品名称
    @TableField(value = "product_desc", condition = SqlCondition.LIKE)
    private String product_desc; // 商品描述
    @TableField(value = "product_price")
    private Double product_price; // 商品价格
    @TableField(value = "product_pay", condition = SqlCondition.LIKE)
    private Integer product_pay; // 商品付款人数
    @TableField(value = "product_tag_desc1", condition = SqlCondition.LIKE)
    private String product_tag_desc1; // 商品标签1文字
    @TableField(value = "product_tag_desc2", condition = SqlCondition.LIKE)
    private String product_tag_desc2; // 商品标签2文字
    @TableField(value = "product_tag_desc3", condition = SqlCondition.LIKE)
    private String product_tag_desc3; // 商品标签3文字
    @TableField(value = "product_img_url")
    private String product_img_url; // 商品图片url
    @TableField(value = "product_discount", condition = SqlCondition.LIKE)
    private Double product_discount; // 商品折扣
    @TableField(value = "product_authority", condition = SqlCondition.EQUAL)
    private Integer product_authority; // 商品权限（999超级管理员/0游客/1注册用户/3代理
    @TableField(value = "product_racking", condition = SqlCondition.EQUAL)
    private Integer product_racking; // 商品是否下架（0上架/1下架）
    @TableField(value = "product_type", condition = SqlCondition.EQUAL)
    private Integer product_type; // 商品分类（咸鱼0/抖音1/小红书2/视频号3/快手4）
    @TableField(value = "product_create_tm")
    private Timestamp product_create_tm; // 商品创建时间
    @TableField(value = "product_update_tm")
    private Timestamp product_update_tm; // 商品最新修改时间
    @TableField(value = "stock")
    private Integer stock; // 库存

}
